int a[10][7] = {
  { 1, 1, 1, 1, 1, 1, 0},
  { 0, 1, 1, 0, 0, 0, 0},
  { 1, 1, 0, 1, 1, 0, 1},
  { 1, 1, 1, 1, 0, 0, 1},
  { 0, 1, 1, 0, 0, 1, 1},
  { 1, 0, 1, 1, 0, 1, 1},
  { 1, 0, 1, 1, 1, 1, 1},
  { 1, 1, 1, 0, 0, 0, 0},
  { 1, 1, 1, 1, 1, 1, 1},
  { 1, 1, 1, 1, 0, 1, 1},
};

void setup() {

  for (int i = 3; i <= 9; i++) {
    pinMode(i, OUTPUT);

  }
  // put your setup code here, to run once:

}
void print_led(int t) { //t是对应的数字集合
  for (int i = 0; i <= 7; i++) {
    digitalWrite(i+3, a[t][i]);

  }

}
void loop() {
  // put your main code here, to run repeatedly:
  for (int i = 9; i >= 0; i--) {
    print_led(i);
    delay(400);
  }
}
